﻿using Dapper.Contrib.Extensions;

namespace Tauren.File.Entity.Model
{
    [Table("FilesVersion")]
    public class FilesVersion : EntityBase
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        public virtual int AutoId { get; set; }
        /// <summary>
        /// 文件Key
        /// </summary>
        public virtual string FileKey { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        public virtual long Version { get; set; }
        /// <summary>
        /// 服务版本
        /// </summary>
        public virtual string ServerVersion { get; set; }
        /// <summary>
        /// 变更集json
        /// </summary>
        public virtual string Changes { get; set; }
        /// <summary>
        /// 当前版本地址
        /// </summary>
        public virtual string PrevUri { get; set; }
        /// <summary>
        /// 便跟集地址
        /// </summary>
        public virtual string ChangesUrl { get; set; }
        /// <summary>
        /// 文件ID
        /// </summary>
        public virtual long FileId { get; set; }
    }
}
